package com.aspose.cells;

import java.awt.RenderingHints.Key;
import java.util.HashMap;
import java.util.Map;

public class ImageOrPrintOptions {
   private int j = 96;
   private int k = 96;
   private int l = 2;
   private int m = 0;
   private int n = 100;
   private ImageFormat o = ImageFormat.getBmp();
   private boolean p = false;
   private boolean q = true;
   boolean a = false;
   boolean b = false;
   boolean c = false;
   boolean d = false;
   boolean e = false;
   private int r = 0;
   private com.aspose.cells.b.a.b.c.za s = null;
   boolean f = true;
   private boolean t = false;
   private boolean u = false;
   private boolean v = false;
   private DrawObjectEventHandler w = null;
   private ImageFormat x = ImageFormat.getEmf();
   private String y = "c:\\xpsEmbeded";
   private boolean z = false;
   private boolean A = false;
   Map<Key, Object> g = new HashMap();
   private int B = -1;
   private boolean C = false;
   private int D = 2498570;
   private IWarningCallback E = null;
   private boolean F = false;
   private boolean G = true;
   private int H = 0;
   private int I = Integer.MAX_VALUE;
   int h = 0;
   int i = 0;

   public int getSaveFormat() {
      return this.r;
   }

   public void setSaveFormat(int value) {
      this.r = value;
   }

   public boolean getPrintWithStatusDialog() {
      return this.f;
   }

   public void setPrintWithStatusDialog(boolean value) {
      this.f = value;
   }

   public int getHorizontalResolution() {
      return this.j;
   }

   public void setHorizontalResolution(int value) {
      this.a = true;
      this.j = value;
   }

   public int getVerticalResolution() {
      return this.k;
   }

   public void setVerticalResolution(int value) {
      this.a = true;
      this.k = value;
   }

   public int getTiffCompression() {
      return this.l;
   }

   public void setTiffCompression(int value) {
      this.c = true;
      this.l = value;
   }

   public int getPrintingPage() {
      return this.m;
   }

   public void setPrintingPage(int value) {
      this.b = true;
      this.m = value;
   }

   public int getQuality() {
      return this.n;
   }

   public void setQuality(int value) {
      if (value >= 0 && value <= 100) {
         this.n = value;
      } else {
         throw new IllegalArgumentException("Parameter name: Quality must be between 0 and 100");
      }
   }

   public ImageFormat getImageFormat() {
      return this.o;
   }

   public void setImageFormat(ImageFormat value) {
      this.o = value;
      this.d = true;
   }

   public boolean isCellAutoFit() {
      return this.p;
   }

   public void setCellAutoFit(boolean value) {
      this.p = value;
   }

   boolean a() {
      return this.q;
   }

   void a(boolean var1) {
      this.q = var1;
   }

   /** @deprecated */
   public boolean isImageFitToPage() {
      return this.t;
   }

   /** @deprecated */
   public void setImageFitToPage(boolean value) {
      this.t = value;
   }

   public boolean getOnePagePerSheet() {
      return this.u;
   }

   public void setOnePagePerSheet(boolean value) {
      this.u = value;
   }

   public boolean getAllColumnsInOnePagePerSheet() {
      return this.v;
   }

   public void setAllColumnsInOnePagePerSheet(boolean value) {
      this.v = value;
   }

   public DrawObjectEventHandler getDrawObjectEventHandler() {
      return this.w;
   }

   public void setDrawObjectEventHandler(DrawObjectEventHandler value) {
      this.w = value;
   }

   public ImageFormat getChartImageType() {
      return this.x;
   }

   public void setChartImageType(ImageFormat value) {
      this.x = value;
   }

   public String getEmbededImageNameInSvg() {
      return this.y;
   }

   public void setEmbededImageNameInSvg(String value) {
      this.y = value;
   }

   public boolean getSVGFitToViewPort() {
      return this.z;
   }

   public void setSVGFitToViewPort(boolean value) {
      this.z = value;
   }

   public boolean getOnlyArea() {
      return this.A;
   }

   public void setOnlyArea(boolean value) {
      this.A = value;
   }

   public void setRenderingHint(Key key, Object value) {
      this.g.put(key, value);
   }

   public int getTiffPhotometricInterpretation() {
      return this.B;
   }

   public void setTiffPhotometricInterpretation(int value) {
      this.B = value;
   }

   public boolean getTransparent() {
      return this.C;
   }

   public void setTransparent(boolean value) {
      this.C = value;
   }

   int b() {
      return this.D;
   }

   void a(int var1) {
      this.D = var1;
   }

   public IWarningCallback getWarningCallback() {
      return this.E;
   }

   public void setWarningCallback(IWarningCallback value) {
      this.E = value;
   }

   boolean c() {
      return this.F;
   }

   void b(boolean var1) {
      this.F = var1;
   }

   boolean d() {
      return this.G;
   }

   void c(boolean var1) {
      this.G = var1;
   }

   int e() {
      return this.H;
   }

   void b(int var1) {
      if (var1 >= 0) {
         this.H = var1;
      }

   }

   int f() {
      return this.I;
   }

   void c(int var1) {
      if (var1 > 0) {
         this.I = var1;
      }

   }

   public void setDesiredSize(int desiredWidth, int desiredHeight) {
      if (desiredWidth > 0 && desiredHeight > 0) {
         this.h = desiredWidth;
         this.i = desiredHeight;
      }

   }
}
